package cn.qplanet.transaction.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author: gjq0117
 * @date: 2024/5/11 14:53
 * @description:
 */
@Service
public class MessageServiceImpl {


    @Autowired
    private MqProduct mqProduct;

    @Transactional(rollbackFor = Exception.class,propagation = Propagation.REQUIRED)
    public void testMqSendMsg() {
        mqProduct.sendMsg();
    }
}
